<template>
	<view>
		<view class="top">
			<image class="bjt" src="../../../static/images/ljh/bjt.png"></image>
			<view class="title">登录</view>
			<view class="nh">
				您好，
			</view>
			<view class="hyy">
				欢迎登录车联网服务！
			</view>
		</view>
		<view class="cl">
			<image src="../../../static/images/ljh/cl.png"></image>
		</view>
		<view class="container" style="margin-top: 40rpx;">
			<!-- 手机号登录 -->
			<view class="input-group">
				<!-- <text class="label">手机号登录</text> -->
				<input class="input" type="text" placeholder="手机号登录" />
			</view>

			<!-- 输入验证码 -->
			<view class="input-group">
				<input class="input" type="text" placeholder="输入验证码" />
				<button class="code-button">获取验证码</button>
			</view>

			<!-- 登录按钮 -->
			<button class="login-button" @click="login_btn">登录</button>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			login_btn() {
				uni.$u.route({
					url: '/pages/index/index',
					type: 'tab'
				});
			}
		}
	}
</script>
<style>
	.container {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 20px;
		background-color: #ffffff;
		height: 100vh;
		box-sizing: border-box;
	}

	.input-group {
		display: flex;
		align-items: center;
		margin-bottom: 15px;
		width: 100%;
		border-bottom: 1px solid #e0e0e0;
	}

	.label {
		color: #999999;
		font-size: 14px;
		flex-shrink: 0;
		margin-right: 10px;
	}

	.input {
		flex: 1;
		font-size: 16px;
		color: #333333;
		border: none;
		outline: none;
	}

	.code-button {
		background-color: #0084ff;
		color: #ffffff;
		border: none;
		border-radius: 5px;
		padding: 5px 10px;
		font-size: 14px;
		cursor: pointer;
	}

	.login-button {
		background: linear-gradient(90deg, #007bff, #3399ff);
		color: white;
		border: none;
		border-radius: 25px;
		padding: 7px;
		font-size: 16px;
		text-align: center;
		margin-top: 20px;
		width: 80%;
		height: 100rpx;
		align-items: center;
	}

	.cl {
		position: absolute;
		top: 300rpx;
		left: 400rpx;
	}

	.cl image {
		width: 300rpx;
		height: 200rpx;
	}

	.hyy {
		font-size: 32rpx;
		color: white;
		position: absolute;
		top: 220rpx;
		left: 120rpx;
	}

	.nh {
		position: absolute;
		top: 170rpx;
		left: 120rpx;
		font-size: 44rpx;
		color: white;
	}


	.bjt {
		width: 100%;
		height: 450rpx;
	}

	.top {
		width: 100%;
		height: 450rpx;
		/* background-image: url(@/static/images/ljh/bjt.png); */
		border-radius: 0 0rpx 40rpx 40rpx;
	}

	.title {
		width: 100%;
		color: white;
		text-align: center;
		padding: 50rpx 0rpx;
		font-size: 35rpx;
	}
</style>